﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<WebMVC.Areas.AdminPanel.Models.PrintMediaTypeViewModel>>" %>

    <table>
        <tr>
            
            <th>
                Code
            </th>
            <th>
                NameEn
            </th>
            <th>
                NameRu
            </th>
            <th>
                NameAm
            </th>
            <th>
                DescriptionEn
            </th>
            <th>
                DescriptionRu
            </th>
            <th>
                DescriptionAm
            </th>
            <th>
                CreateDate
            </th>
            <th>Actions</th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
           
            <td>
                <%: item.Code %>
            </td>
            <td>
                <%: item.NameEn %>
            </td>
            <td>
                <%: item.NameRu %>
            </td>
            <td>
                <%: item.NameAm %>
            </td>
            <td>
                <%: item.DescriptionEn %>
            </td>
            <td>
                <%: item.DescriptionRu %>
            </td>
            <td>
                <%: item.DescriptionAm %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.CreateDate) %>
            </td>
            <td>
                <%= Html.ActionLink("Edit", "EditMediaType", new { id = item.Code }, new {@class="icon-link edit-link" })%> |
                <%= Html.ActionLink("Delete", "DeleteMediaType", new { id = item.Code }, new { @class = "icon-link delete-link" })%>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%= Html.ActionLink("Create New Media Type", "CreateMediaType", null, new { @class = "icon-link create-link" })%>
    </p>


